// 模拟表单提交同步方式下载文件
// 能够弹出保存文件对话框
function downloadFileByForm() {
    var url = "http://127.0.0.1:8765/file/downLoadZip";
    var json = '[{"fileName":"new.jpg","fileUrl":"/files/1.jpg"},{"fileName":"new.jpg","fileUrl":"/files/2.jpg"},{"fileName":"new.jpg","fileUrl":"/files/3.jpg"}]';
    var form = $("<form></form>").attr("action", url).attr("method", "post");
    form.append($("<input/>").attr("type", "hidden").attr("name", "fileData").attr("value", json));
    form.appendTo('body').submit().remove();
}